﻿@model BatsMVCPortal.Models.Topic
@{
    ViewBag.Title = "Details";
}
<h2>
    Details</h2>
<fieldset>
    <legend>Topic</legend>
    <div class="display-label">
        Blog</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Blog.BlogTitle)
    </div>
    <div class="display-label">
        UserId</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserId)
    </div>
    <div class="display-label">
        TopicType</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicType)
    </div>
    <div class="display-label">
        TopicTitle</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicTitle)
    </div>
    <div class="display-label">
        TopicTags</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicTags)
    </div>
    <div class="display-label">
        TopicDateAdd</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicDateAdd)
    </div>
    <div class="display-label">
        TopicRating</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicRating)
    </div>
    <div class="display-label">
        TopicCountVote</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicCountVote)
    </div>
    <div class="display-label">
        TopicCountRead</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicCountRead)
    </div>
    <div class="display-label">
        TopicCountComment</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicCountComment)
    </div>
    <div class="display-label">
        TopicForbidComment</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicForbidComment)
    </div>
    <div class="display-label">
        TopicTextShort</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicTextShort)
    </div>
    <div class="display-label">
        TopicTextSource</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TopicTextSource)
    </div>
    @foreach (var photo in Model.Photos)
    {        
        <div class="display-label">
            -------------------------</div>
        @Html.Label(photo.PhotoName)
    }
    @foreach (var video in Model.Videos)
    {        
        <div class="display-label">
            -------------------------</div>
        @Html.Label(video.VideoName)
    }
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.TopicId }) |
    @Html.ActionLink("Back to List", "Index")
</p>
